import { ref } from "vue";

export function usePageSearch() {
  const pageContentRef = ref();

  const handleQueryClick = (queryInfo) => {
    pageContentRef.value.getPathData(queryInfo);
  };

  const handleResetClick = () => {
    pageContentRef.value.getPathData();
  };

  return [pageContentRef, handleQueryClick, handleResetClick];
}
